import FieldProps, {type IFieldProps} from '../../basic/FieldProps'

export interface ICheckboxProps extends IFieldProps{
  options: {value:string,label:string}[]
}
export default class CheckboxProps extends FieldProps implements ICheckboxProps{
  public options = [{value:'选项一',label:'选项一'},{value:'选项二',label:'选项二'}]

  constructor(props?:ICheckboxProps) {
    super({
      widgetLabel: "多选框",
      widgetType:"CHECKBOX",
      ...(props||{})
    });
    if(props){
      this.options = props.options || this.options;
    }
  }

}



